home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / models / fx / bh_stone_hard.tik < prev    next >
Encoding:
Text File  |  2002-10-21  |  3.3 KB  |  138 lines

  1. TIKI
  2. setup
  3. {
  4.     scale 1.0
  5.     path models/fx/dummy
  6.     skelmodel dummy2.skd
  7. }
  8.  
  9. init
  10. {
  11.     client
  12.     {
  13.         //cache some stuff used in this effect
  14.         cache bhole_stone.spr // cache the bullet hole shader
  15.         cache bh_stone_piece.spr
  16.         cache stonechip.spr
  17.         cache smokegrenade.spr
  18.  
  19.         // chunky chunks of chunky stuff (colliders)
  20.         sfx originspawn
  21.         (
  22.             model stonechip.spr
  23.             spawnrange 1536
  24.             spritegridlighting
  25.             alpha 0.75
  26.             angles 0 0 crandom 180
  27.             avelocity 0 0 crandom 180
  28.             offsetalongaxis random 4 crandom 3 crandom 3
  29.             count 2
  30.             velocity 240
  31.             randvelaxis random 300 crandom 400 crandom 400
  32.             accel 0 0 -800
  33.             life 1.6 0.8
  34.             scalemin 0.1
  35.             scalemax 0.25
  36.             fadedelay 0.6
  37.             collision
  38. //            bouncefactor 0.2
  39. //            bouncesound snd_bh_debris_stone
  40.         )
  41.  
  42.         // chunky chunks of chunky stuff (non-colliders)
  43.         sfx originspawn
  44.         (
  45.             model bh_stone_piece.spr
  46.             spawnrange 1536
  47.             spritegridlighting
  48.             alpha 0.75
  49.             angles 0 0 crandom 180
  50.             avelocity 0 0 crandom 180
  51.             offsetalongaxis random 4 crandom 3 crandom 3
  52.             count 2
  53.             velocity 240
  54.             randvelaxis random 300 crandom 400 crandom 400
  55.             accel 0 0 -800
  56.             life 1.6 0.8
  57.             scalemin 0.1
  58.             scalemax 0.25
  59.             fadedelay 0.6
  60. //            collision
  61. //            bouncefactor 0.2
  62. //            bouncesound snd_bh_debris_stone
  63.         )
  64.  
  65.         sfx originspawn
  66.         (
  67.             model smokegrenade.spr
  68.             cone 24 10
  69.             count 2
  70.             scalemin .35
  71.             scalemax .5
  72.             scalerate 1
  73. //            radialvelocity 128 0 16
  74.             randvelaxis random 96 crandom 24 range 24 48
  75.             friction 2
  76.             life .5 .3
  77.             alpha 0.3
  78.             fade
  79.             color .7 .7 .7
  80.             varycolor
  81.             spritegridlighting
  82.         )
  83.  
  84.         // first bit of lingering smoke
  85. //        sfx originspawn
  86. //        (
  87. //            volumetric
  88. //            model bulletimpact    // sets the type of smoke
  89. //            life 10        // amount of smoke
  90. //            scale 1.5    // radius
  91. //            alpha 0.3    // density
  92. //            color 0.7 0.7 0.7    // RBG color of the smoke
  93. //            velocity 12    // base velocity away from the surface
  94. //            randvelaxis random 4 0 0    // velocity offset
  95. //            offsetalongaxis 4 crandom 4 crandom 4    // positional offset
  96. ////            collision // turn on collision detection
  97. //            smokeparms 0 .8 0
  98. //        )
  99. //
  100. //        // second bit of lingering smoke
  101. //        delayedsfx 0.15 originspawn
  102. //        (
  103. //            volumetric
  104. //            model bulletimpact    // sets the type of smoke
  105. //            life 10        // amount of smoke
  106. //            scale 1.5    // radius
  107. //            alpha 0.25    // density
  108. //            color 0.7 0.7 0.7    // RBG color of the smoke
  109. //            velocity 10    // base velocity away from the surface
  110. //            randvelaxis random 4 0 0    // velocity offset
  111. //            offsetalongaxis 4 crandom 2 crandom 2    // positional offset
  112. ////            collision // turn on collision detection
  113. //            smokeparms 0 .8 0
  114. //        )
  115. //
  116. //        // third bit of lingering smoke
  117. //        delayedsfx 0.3 originspawn
  118. //        (
  119. //            volumetric
  120. //            model bulletimpact    // sets the type of smoke
  121. //            life 10        // amount of smoke
  122. //            scale 1.5    // radius
  123. //            alpha 0.25    // density
  124. //            color 0.7 0.7 0.7    // RBG color of the smoke
  125. //            velocity 8    // base velocity away from the surface
  126. //            randvelaxis random 4 0 0    // velocity offset
  127. //            offsetalongaxis 4 crandom 2 crandom 2    // positional offset
  128. ////            collision // turn on collision detection
  129. //            smokeparms 0 .8 0
  130. //        )
  131.     }
  132. }
  133.  
  134. // This section is just needed to be a valid tiki file
  135. animations
  136. {
  137.     idle dummy2.skc
  138. }